package aooO.crm.Service.impl;

import aooO.crm.Service.CustomerRemarkService;
import aooO.crm.mapper.CustomerRemarkMapper;
import aooO.crm.pojo.CustomerRemark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerRemarkServiceImpl implements CustomerRemarkService {

    @Autowired
    CustomerRemarkMapper customerRemarkMapper;

    @Override
    public List<CustomerRemark> selectRemarkByCustomerId(String customer_id) {
        return customerRemarkMapper.selectRemarkByCustomerId(customer_id);
    }

    @Override
    public int deleteCustomerRemarkByCustomerIds(String[] customerIds) {
        return customerRemarkMapper.deleteCustomerRemarkByCustomerIds(customerIds);
    }

    @Override
    public int insertCustomerRemark(CustomerRemark customerRemark) {
        return customerRemarkMapper.insertCustomerRemark(customerRemark);
    }

    @Override
    public int deleteCustomerRemarkById(String id) {
        return customerRemarkMapper.deleteCustomerRemarkById(id);
    }

    @Override
    public int updateCustomerRemark(CustomerRemark customerRemark) {
        return customerRemarkMapper.updateCustomerRemark(customerRemark);
    }
}
